package cn.exempale.mscapplication.model.repository;

import androidx.lifecycle.LiveData;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import cn.exempale.mscapplication.APP;
import cn.exempale.mscapplication.emnus.ResultType;
import cn.exempale.mscapplication.model.db.dao.ResultDAO;
import cn.exempale.mscapplication.model.db.dao.TaskDAO;
import cn.exempale.mscapplication.model.db.database.AudioDb;
import cn.exempale.mscapplication.model.net.callback.Resource;
import cn.exempale.mscapplication.vo.BasicResultVO;

public class BaseRepository {

    protected TaskDAO taskDAO;
    protected ExecutorService executor;
    protected ResultDAO resultDAO;

    public BaseRepository() {
        AudioDb audioDb = AudioDb.getDatabase(APP.getContext());
        taskDAO = audioDb.taskDAO();
        resultDAO = audioDb.resultDAO();
        executor = Executors.newSingleThreadExecutor();
    }
}
